

<template>
  <view class="search-container">
    <PinCommonBar @search="search" />
    <view class="home-content">
    </view>
  </view>
  <PinSkuPanel ref="skuPanel" />
</template>

<script setup lang="ts">
import { ref } from 'vue';
import Apis from "@/services/modules/search"
import type { searchItem } from '@/types/search'

const list = ref<searchItem[]>()
const search = async () => {
  const { data } = await Apis.getSearchKeyWordList()
  list.value = data.pdList
}

</script>

<style lang="scss">
page {
  background-color: #f7f7f7;
}

.search-container {
  height: 100vh;
  display: flex;
  flex-direction: column;

  .home-content {
    flex: 1;
  }
}
</style>
